package com.dzk.cp.c11x5.action;

import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.dzk.cp.c11x5.pojo.R5;
import com.dzk.cp.c11x5.util.SpringBeanUtils;

@Controller("r5Action")
@Scope("prototype")
public class R5Action extends BaseAction {

	private static final long serialVersionUID = 7159188206286346057L;
	
	private List<? extends R5> r5List;
	
	private int num = 50;
	
	public String list() {
		r5List = SpringBeanUtils.getR5Service(code).queryLatest(num);
		return "r5_list";
	}

	public List<? extends R5> getR5List() {
		return r5List;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

}
